class CreateDeskEndActions < ActiveRecord::Migration
  def self.up
    add_column :desk_actions, :desk_action_aggregate_id, :integer
    remove_column :desk_action_aggregates, :start_action_id
    remove_column :desk_action_aggregates, :end_action_id
  end

  def self.down
    add_column :desk_action_aggregates, :start_action_id, :int
    add_column :desk_action_aggregates, :end_action_id, :int
    remove_column :desk_actions, :desk_action_aggregate_id
  end
end
